package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.kpirepport.PMKPIReportTransferer;
import com.fis.hlo.pm.kpirepport.PMKPIReportTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class KPIReportTransfererClient {
	private static final QName SERVICE_NAME = new QName(
			"http://kpirepport.pm.hlo.fis.com/", "PMKPIReportTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_KPI_PORT_KEY);

	public static PMKPIReportTransferer getService() throws Exception {
		URL url = new URL(WSDL_URL);
		PMKPIReportTransfererService ss = new PMKPIReportTransfererService(url,
				SERVICE_NAME);
		PMKPIReportTransferer port = ss.getPMKPIReportTransfererPort();
		return port;
	}
}
